﻿using Microsoft.TeamFoundation.WorkItemTracking.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SearchForWorkitemsChanges.ExternalActions
{
    /// <summary>
    /// Contract describing an external interaction with the search result
    /// </summary>
    /// <remarks>
    /// To create an addon, see the namespace <see cref="SearchForWorkitemsChanges"/> documentation.
    /// </remarks>
    public interface IExternalAction
    {
        /// <summary>
        /// Name displayed on the button
        /// </summary>
        string DisplayName { get; }

        /// <summary>
        /// ToolTip displayed on the button
        /// </summary>
        string TooltipDescription { get; }

        /// <summary>
        /// Execute called on button click
        /// </summary>
        /// <param name="workitems">The search result</param>
        void Execute(IEnumerable<WorkItem> workitems);
    }
}
